import LogicFlow from "@logicflow/core";
import CommonNode from "./common/CommonNode";
import IfNode from "./if/IfNode";
import SwitchNode from "./switch/SwitchNode";
import GroupNode from './group/GroupNode';
import AndNode from "./logicGraph/and/AndNode";
import NotNode from "./logicGraph/not/NotNode";
import OrNode from "./logicGraph/or/OrNode";
import CustomEdge from "./edge/CustomEdge";

export const registerAll = (lf: LogicFlow) => {
    lf.register(CommonNode)
    lf.register(IfNode)
    lf.register(SwitchNode)
    lf.register(GroupNode)
    lf.register(AndNode)
    lf.register(NotNode)
    lf.register(OrNode)

    lf.register(CustomEdge)
}

export const AllNode = {
    CommonNode, IfNode, SwitchNode, GroupNode, AndNode, NotNode, OrNode, CustomEdge
}